import request from '@/utils/request'

// 查询用户端留言列表
export function listBbsUser(query) {
  return request({
    url: '/shopping/bbsUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户端留言详细
export function getBbsUser(id) {
  return request({
    url: '/shopping/bbsUser/' + id,
    method: 'get'
  })
}

// 新增用户端留言
export function addBbsUser(data) {
  return request({
    url: '/shopping/bbsUser',
    method: 'post',
    data: data
  })
}

// 修改用户端留言
export function updateBbsUser(data) {
  return request({
    url: '/shopping/bbsUser',
    method: 'put',
    data: data
  })
}

// 删除用户端留言
export function delBbsUser(id) {
  return request({
    url: '/shopping/bbsUser/' + id,
    method: 'delete'
  })
}
// 删除用户端留言
export function logicDelBbsUser(id) {
  return request({
    url: '/shopping/bbsUser/' + id,
    method: 'delete'
  })
}

// 导出用户端留言
export function exportBbsUser(query) {
  return request({
    url: '/shopping/bbsUser/export',
    method: 'get',
    params: query
  })
}
